package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tb_address")
public class Address extends Model<Address>{
    @TableId(type = IdType.AUTO)
    private Long addressId;

    private Long userId;

    private String userName;

    private String tel;

    private String streetName;

    //是否是默认收货地址
    private Boolean defaultAddress;

    @Override
    protected Serializable pkVal() {
        return addressId;
    }
}